import request from '@/utils/request';

export async function getVersions(params = {}) {
  return request('/Amaidan-Center-Web/api/comm/opAclData', {
    method: 'POST',
    data: {
      opAction: "query",
      opKey: "APP_UPDATE",
      opType: "ZSET"
    },
  });
}
// 职位
export async function fetchManageList(params = {}) {
  return request('/amaidan-sys-user/merchants/position/manage/list', {
    method: 'POST',
    data: params,
  });
}

export async function manageSaveOrEdit(params = {}) {
  return request('/amaidan-sys-user/merchants/position/manage/saveOrUpdate', {
    method: 'POST',
    data: params,
  });
}

export async function delManage(params = {}) {
  return request('/amaidan-sys-user/merchants/position/manage/delete', {
    method: 'POST',
    data: params,
  });
}

export async function fetchOneManage(params = {}) {
  return request('/amaidan-sys-user/merchants/position/manage/get', {
    method: 'POST',
    data: params,
  });
}

// 小程序
export async function getVersionList(params = {}) {
  return request('/Amaidan-Wx-Web/miniProgram/getVersionList', {
    method: 'POST',
    data: params,
  });
}

export async function getTemplateList(params = {}) {
  return request('/Amaidan-Wx-Web/miniProgram/getTemplateList', {
    method: 'POST',
    data: params,
  });
}